package com.huarui.part.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.ewaf.framework.model.BaseDataObject;

/**
 * 零件类
 * 
 * @author xu
 * 
 */
public class Part extends BaseDataObject {

	private final static long serialVersionUID = -713383448014210425L;

	/**
	 * 主键　
	 */
	private Integer id;
	/**
	 * 公司ID
	 */
	private Integer companyId;

	/**
	 * 编码
	 */
	private String code;
	/**
	 * 来源
	 */
	private Integer source;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 英文名称
	 */
	private String nameEn;
	/**
	 * 拼音码
	 */
	private String pyCode;
	/**
	 * 计量单位
	 */
	private String measurementUnit;
	/**
	 * 零件分类
	 */
	private Integer partCategoryId;
	/**
	 * 一级分类名称
	 */
	private String level1Name;
	/**
	 * 二级分类名称
	 */
	private String level2Name;
	/**
	 * 一级分类ID
	 */
	private Integer level1Id;
	/**
	 * 用量,用量和车型相关
	 */
	private int quantity;
	/**
	 * 图片1
	 */
	private String picture1;
	/**
	 * 图片2
	 */
	private String picture2;
	/**
	 * 耐用性
	 */
	private String durability;


	private PartProperty partProperty;

	@Override
	public Integer getId() {

		return this.id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public String getMeasurementUnit() {
		return measurementUnit;
	}

	public void setMeasurementUnit(String measurementUnit) {
		this.measurementUnit = measurementUnit;
	}

	public Integer getPartCategoryId() {
		return partCategoryId;
	}

	public void setPartCategoryId(Integer partCategoryId) {
		this.partCategoryId = partCategoryId;
	}

	public String getLevel1Name() {
		return level1Name;
	}

	public void setLevel1Name(String level1Name) {
		this.level1Name = level1Name;
	}

	public String getLevel2Name() {
		return level2Name;
	}

	public void setLevel2Name(String level2Name) {
		this.level2Name = level2Name;
	}

	public Integer getLevel1Id() {
		return level1Id;
	}

	public void setLevel1Id(Integer level1Id) {
		this.level1Id = level1Id;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public String getPicture1() {
		return picture1;
	}

	public void setPicture1(String picture1) {
		this.picture1 = picture1;
	}

	public String getPicture2() {
		return picture2;
	}

	public void setPicture2(String picture2) {
		this.picture2 = picture2;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDurability() {
		return durability;
	}

	public void setDurability(String durability) {
		this.durability = durability;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public PartProperty getPartProperty() {
		return partProperty;
	}

	public void setPartProperty(PartProperty partProperty) {
		this.partProperty = partProperty;
	}


	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

}
